{foreach $list['data'] as $v}
<div class="item">
    <div class="item_top">
        <a href="{:url('index/detail')}?detail_id={$v['id']}"><img src="{:getFile($v['cover_img'])}" alt=""></a>
        <div><a href="{:url('index/detail')}?detail_id={$v['id']}">{$v['title']}</a></div>
    </div>
    <div class="intro">
        <a href="{:url('index/detail')}?detail_id={$v['id']}">{$v['intro']}</a>
    </div>
    <div class="time">
        <a href="{:url('index/detail')}?detail_id={$v['id']}">{:date('Y-m-d H:i:s', $v['create_time'])}</a>
    </div>
</div>
{/foreach}
<div id="page"></div>
<script>
    layui.laypage.render({
        elem: 'page',
        count: {$list['total']} // 数据总数
    })
</script>